

RESULT_SUCCESS_CODE=200
RESULT_SUCCESS_MSG='success'
RESULT_ERROR_CODE=404
RESULT_ERROR_MSG='error'

class Result:
    @staticmethod
    def get_success_result(data=None,status=RESULT_SUCCESS_CODE, msg=RESULT_SUCCESS_MSG):
        return {
            'status': status,
            'msg': msg,
            'data': data
        }

    @staticmethod
    def get_error_result(data=None,status=RESULT_ERROR_CODE, msg=RESULT_ERROR_MSG):
        return {
            'status': status,
            'msg': msg,
            'data': data
        }